
<#include "/common/head.html"/>

 <div class="easyui-panel updatePage" data-options="fit:true,border:false">
    <form id="ff" class="easyui-form" method="post">
        <table class="table1">
        	
           	<tr>           	
           		<th><span>入库单名称：</span></th>
               	<td colspan="4">
               		<input class="easyui-textbox" type="text" name="in_name" value="${model.in_name!''}" data-options="" style="width:70%"></input>
           		</td>
           	</tr>
           	<tr>
           		<th><span>入库单编号：</span></th>
               	<td>
               		<input class="easyui-textbox" type="text" name="in_no" value="${model.in_no!''}" data-options="readonly:true"></input>
           		</td>
           		<th><span>入库单条码：</span></th>
               	<td>
               		<input class="easyui-textbox" type="text" name="in_barcode" value="${model.in_barcode!''}" data-options="readonly:true"></input>
           		</td>            		
           	</tr>
           	 <tr>
           		<th><span>入库类型：</span></th>
               	<td>
               		<input id="in_type" name="in_type" class="easyui-combobox" value="${model.in_type!''}" data-options="
               				
               				valueField: 'id',
        					textField: 'text',
        					data:[
        						{id:'', text:''}<#list dictDatain_type.keySet() as key>,{id:'${key}', text:'${dictDatain_type.get(key)}'}</#list>
	               			]
               		"/>
           		</td>
           		<!-- 
           		<th><span>订单编号：</span></th>
               	<td>
               		<input class="easyui-textbox" type="text" name="order_no" value="${model.order_no!''}" data-options=""></input>
           		</td>
           		 -->
           		<th><span>所属仓库：</span></th>
               	<td>
               		<input id="storage_no" name="storage_no" class="easyui-combobox" value="${model.storage_no!''}" data-options="
               				
               				valueField: 'id',
        					textField: 'text',
        					data:[
        						{id:'', text:''}<#list dictDatastorage_no.keySet() as key>,{id:'${key}', text:'${dictDatastorage_no.get(key)}'}</#list>
	               			]
               		"/>
           		</td>
           		
            </tr>
           	<tr>
           		<th><span>填单人员：</span></th>
               	<td>
               		<input class="easyui-textbox" type="text" name="create_user" value="${model.create_user!''}" data-options="readonly:true"></input>
           		</td> 
           		
           		<th><span>填单时间：</span></th>
               	<td>
               		<input class="easyui-datetimebox" type="text" name="in_time" value="${model.in_time!''}" data-options=""></input>
           		</td>            		
           	</tr>           
           	<!-- <tr>
           		<th><span>供应商编号：</span></th>
               	<td>
               		<input class="easyui-textbox" type="text" name="sup_num" value="${model.sup_num!''}" data-options=""></input>
           		</td>
            </tr>  
            <tr>
           		<th><span>审核人员：</span></th>
               	<td>
               		<input class="easyui-textbox" type="text" name="audit_user" value="${model.audit_user!''}" data-options=""></input>
           		</td>
           		
           		<th><span>审核时间：</span></th>
               	<td>
               		<input class="easyui-datetimebox" type="text" name="audit_time" value="${model.audit_time!''}" data-options=""></input>
           		</td>
           		
            </tr>
            <tr><th><span>打印人员：</span></th>
               	<td>
               		<input class="easyui-textbox" type="text" name="print_user" value="${model.print_user!''}" data-options=""></input>
           		</td>
           		<th><span>打印时间：</span></th>
               	<td>
               		<input class="easyui-datetimebox" type="text" name="print_time" value="${model.print_time!''}" data-options=""></input>
           		</td>
           	</tr>-->
            <tr>
            	<th><span>批次：</span></th>
               	<td>
               		<input class="easyui-textbox" type="text" name="in_batch" value="${model.in_batch!''}" data-options=""></input>
           		</td>	
           		
           		<th><span>单据类型：</span></th>
               	<td colspan="4">
               		<input id="operate_type" name="operate_type" class="easyui-combobox" value="${model.operate_type!''}" data-options="
               				
               				valueField: 'id',
        					textField: 'text',
        					data:[
        						{id:'', text:''}<#list dictDataoperate_type.keySet() as key>,{id:'${key}', text:'${dictDataoperate_type.get(key)}'}</#list>
	               			],
	               			readonly:true
               		"/>
           		</td>             		
            </tr>            
        </table>
    </form>
</div>
<script>
top.window.subPage.save = save;
function save() {
	if($("#zcurdHeadTable").form('validate')) {
		$.post("update", getParam(), function(data) {
			top.window.closeWindow();
			top.window.subPage.loadCurrDatagrid();
		});
	}
}
function getParam() {
	var param = {
	     
	    "id": ${model.id}, 
       	    "model.in_type": getInputValue("in_type"), 
       	    "model.order_no": getInputValue("order_no"), 
       	    "model.storage_no": getInputValue("storage_no"), 
       	    "model.sup_num": getInputValue("sup_num"), 
       	    "model.in_time": getInputValue("in_time"), 
       	    "model.create_user": getInputValue("create_user"), 
       	    "model.audit_user": getInputValue("audit_user"), 
       	    "model.audit_time": getInputValue("audit_time"), 
       	    "model.print_user": getInputValue("print_user"), 
       	    "model.print_time": getInputValue("print_time"), 
       	    "model.operate_type": getInputValue("operate_type"), 
       	    "model.in_no": getInputValue("in_no"), 
       	    "model.in_barcode": getInputValue("in_barcode"), 
       	    "model.in_name": getInputValue("in_name"), 
       	    "model.in_batch": getInputValue("in_batch"),        	    
	}
	for(key in param) {
		if(!param[key]) {
			delete param[key];
		}
	}
	return param;
}

//扩展js
</script>
<#include "/common/foot.html"/>
